package com.joker.orange.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.joker.common.annotation.ExcelDictFormat;
import com.joker.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 收藏视图对象 t_collection
 *
 * @author Joker
 * @date 2024-06-09
 */
@Data
@ExcelIgnoreUnannotated
public class CollectionVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @ExcelProperty(value = "唯一标识")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 收藏ID
     */
    @ExcelProperty(value = "收藏ID")
    private Long collectionId;

    /**
     * 收藏类型（0-网格视频、1-短视频、2-小说、3-漫画、4-动漫）
     */
    @ExcelProperty(value = "收藏类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0-网格视频、1-短视频、2-小说、3-漫画、4-动漫")
    private String collectionType;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    private String collectionName;

    private String collectionCover;

    private BigDecimal videoTime;

    private String lookNum;

    private String chargeType;

    private String updateChapter;

}
